package com.mezz.bones.im.sdk.domain.request;

import com.mezz.bones.im.sdk.domain.base.BaseRequest;
import com.mezz.bones.im.sdk.domain.base.UrlConstants;
import com.mezz.bones.im.sdk.domain.response.ConversationRecordRes;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @Author: zhuang
 * @Date: 2024/12/19 14:12
 * @Description: TODO
 * @Version: 1.0
 **/

@EqualsAndHashCode(callSuper = true)
@Data
@ApiModel("用户会话列表请求参数")
public class ConversationRecordReq extends BaseRequest<ConversationRecordRes> {

    @ApiModelProperty(value = "1单聊 2群聊")
    private Integer sessionType;

    @ApiModelProperty("0普通单聊 1客服单聊")
    private Integer customService;

    @ApiModelProperty("用户ID")
    private String userId;

    @ApiModelProperty("指定对端用户")
    private String peerId;

    @ApiModelProperty("上一页最后一条数据的游标ID")
    private Long cursorId;

    @ApiModelProperty("查询模式 0查询历史数据 1查询新数据")
    private Integer fetchMode;

    @ApiModelProperty("拉取多少条消息")
    private Integer fetchNum;

    @Override
    public String getUrl() {
        return UrlConstants.IM_CONVERSATION_RECORD;
    }
}
